<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
    <link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
            font-family: "Microsoft YaHei UI";,
        }
        html,body{
            background-image: linear-gradient(to bottom right,
            rgb(198, 125, 84),rgb(204, 134, 94), rgb(211,145,106));
            background-size: 100% 100%;
            height: 100%;
        }
        .header{
            height: 70px;
            background-color: #733e2a;
        }
        .header .logo{
            background: url(img/logo.png) no-repeat;
            background-size: 70px 70px;
            height: 70px;
            font-size: 26px;
            color: white;
            line-height: 70px;
            padding-left: 75px;
            font-weight: 700;
            float: left;
            width: 400px;
        }
        .header .user{
            height: 70px;
            color: white;
            line-height: 70px;
            font-weight: 700;
            float: right;
            margin-right: 30px;
            font-size: 14px;
            padding: 0 15px;
            cursor: pointer;
        }
        .header .user .point{
            float: right;
            margin-top: 28px;
            margin-left: 4px;
        }
        .header .user ul{
            list-style: none;
            background-color: #f5f1f1;
            box-shadow: 2px 2px 3px #e3dfdf;
            position: absolute;
            z-index: 999999;
            display: none;
            margin-left: -5px;
        }
        .header .user:hover ul{
            display: block;
        }
        .header .user ul li{
            height: 40px;
            line-height: 40px;
            border-bottom: 1px dotted #cccccc;
        }
        .header .user ul li a{
            color: black;
            font-size: 14px;
            font-weight: normal;
            text-decoration: none;
            display: block;
            padding: 0 15px;
        }
        .header .user ul li a:hover{
            background-color: #ffffff;
        }
        .login{
            top: 25%;
            position: absolute;
            background-color: #f8d49c;
            bottom: 25%;
            left: 37%;
            right: 37%;
            border-radius: 20px;
            height: 400px;
        }
        select{
            width: 35%;
            height: 20px;
            border-radius: 5px;
            border: 1px solid #e1e1e1;
            text-align: center;
        }
        .title{
            position: absolute;
            bottom: 80%;
            top: 0;
            width: 100%;
            text-align: center;
            font-size: 25px;
            font-weight: bold;
            padding-top: 10px;
            box-sizing: border-box;
            color: #643422;
        }
        input{
            height: 35px;
            background-color: #f2f2fa;
            border: 0;
            border-radius: 5px;
            width: 60%;
        }
        .l button{
            background-color: chocolate;
            height: 40px;
            width: 200px;
            font-size: 20px;
            border-radius: 40px;
            color: white;
            cursor: pointer;
        }
        .log:hover{
            background-color: coral ;
        }

        .u{
            position: absolute;
            bottom: 60%;
            top: 20%;
            width: 100%;
            left: 10%;
        }
        .p{
            position: absolute;
            bottom: 60%;
            top: 35%;
            width: 100%;
            left: 10%;
        }
        .validate{
            position: absolute;
            top:50% ;
            width: 100%;
            left: 10%;
        }
        .validate img{
            margin-top: 10px;
            margin-left: 95px;
        }
        .s{
            position: absolute;
            top: 73%;
            bottom: 50%;
            left: 10%;
            width: 100%;
         }
        .l{
            position: absolute;
            bottom: 25%;
            top: 82%;
            width: 100%;
            left: 27%;
            border: 0;
            border-radius: 5px;
        }

        .tip{
            position: absolute;
            top: 93%;
            left: 35%;
            color: red;
        }

    </style>
</head>
<body>
<div class="header">
    <div class="logo">学生选课系统</div>

    <div class="user">
        <i class="fa fa-caret-down point"></i>
        <i class="fa fa-user"></i>
        管理员
        <ul>
            <li><a href="javascript:void (0)">修改密码</a> </li>
            <li><a href="javascript:void (0)">个人信息</a></li>
            <li><a href="javascript:void (0)">退出登录</a></li>
        </ul>
    </div>
</div>

<div class="login">

    <div class="title">
        SIGN IN
    </div>
    <form action="login" method="post">
        <div class="u">
            <i class="fa fa-user-circle"></i>
            用 &nbsp;户 ：<input type="text" name="username"/>
        </div>
        <div class="p">
            <i class="fa fa-key"></i>
            密&nbsp; 码 ：<input type="password" name="password"/>
        </div>
        <div class="validate">
            <i class="fa fa-lightbulb-o"></i>&nbsp;
            验证码：<input type="text" name="validate">
            <img class="code" src="/demo/validateCode">
        </div>
        <div class="s">
            <select name="type">
                <option value="">请选择登录类型</option>
                <option value="0">学生</option>
                <option value="1">老师</option>
                <option value="2">管理员</option>
            </select>
        </div>
        <div class="l">
            <button class="log" type="submit">登录</button>
        </div>
    </form>
    <div class="tip">
       ${error}
    </div>
</div>

</body>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" type="text/javascript"></script>
</html>